embed.openFile.f (field)
12 uses
embed (current package)
embed.go#L330: return []byte(ofile.f.data), nil
embed.go#L335: f *file // the file itself
embed.go#L345: func (f *openFile) Stat() (fs.FileInfo, error) { return f.f, nil }
embed.go#L348: if f.offset >= int64(len(f.f.data)) {
embed.go#L352: return 0, &fs.PathError{Op: "read", Path: f.f.name, Err: fs.ErrInvalid}
embed.go#L354: n := copy(b, f.f.data[f.offset:])
embed.go#L366: offset += int64(len(f.f.data))
embed.go#L368: if offset < 0 || offset > int64(len(f.f.data)) {
embed.go#L369: return 0, &fs.PathError{Op: "seek", Path: f.f.name, Err: fs.ErrInvalid}
embed.go#L376: if offset < 0 || offset > int64(len(f.f.data)) {
embed.go#L377: return 0, &fs.PathError{Op: "read", Path: f.f.name, Err: fs.ErrInvalid}
embed.go#L379: n := copy(b, f.f.data[offset:])
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |